<?php

namespace App\Http\Controllers\admin;

use App\Dao\WithdrawalDao;
use App\Services\Code;

class WithdrawalController extends BaseController
{
    public function withdrawal(){
        if(getIsHasPage()){
            return  Code::message('',200,WithdrawalDao::pager(request()->all()));
        }
        return view('admin.withdrawal.withdrawal');
    }

    public function audit(){
        if(isPost()){
            $params = request()->all();
            WithdrawalDao::audit($params);
            return  Code::message('',200);
        }
        return view('admin.withdrawal.audit',[
            'u_withdrawal_id'=>$_GET['u_withdrawal_id']
        ]);
    }
}
